import 'package:bpb/db/db_helper.dart';
import 'package:bpb/framework/base/base_controller.dart';
import 'package:bpb/routers/routers.dart';
import 'package:get/get.dart';
import 'package:get/get_core/src/get_main.dart';

class SplashController extends BaseController{

  @override
  void onInit() {
    super.onInit();
  }


  @override
  void onReady() {

    DBHelper.openDb();

    Future.delayed(Duration(seconds: 1),(){
      Get.offNamed(AppPage.ROUTER_HOME);
    });

  }
}